package Adapter_Pattern.car_dog;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Adapter implements cat,dog{
    cat cat1=null;
    dog dog1=null;

    public  Adapter(cat cat1){
        this.cat1=cat1;
    }
    public  Adapter(dog dog1) {
        this.dog1 = dog1;
    }

    public void dog_cry() {
        cat1.Mouse();
    }



    public void Mouse() {
        dog1.dog_cry();
    }
}
